package com.training.java.corejava.interfacedemo;

public class Cat implements Animal {
	private String color;
	private String size;
	private String food;
	private String soundProduced;

	Cat(String color, String size, String food, String soundProduced) {
		this.food = food;
		this.color = color;
		this.size = size;
		this.soundProduced = soundProduced;
	}

	public void eat() {
		// food=catFood;
		System.out.println("Cats eats cat food." + food);
	}

	public void walk() {
		System.out.println("cats cann't run so fast. ");

	}

	public void makeSound() {
		// soundProduced=sound;
		System.out.println("Cat says: " + soundProduced);
	}
}
